public class QueuedMessage extends Thread
{
	public String target;
	public String msg;
	public long delay;
	public long start;

	public QueuedMessage()
	{
		start = System.currentTimeMillis();
	}

	public QueuedMessage(String target, String msg, long delay)
	{
		start = System.currentTimeMillis();
		this.target = target;
		this.msg = msg;
		this.delay = delay;
	}

	public void run()
	{
		while (System.currentTimeMillis() < start + delay)
			try { Thread.sleep(1000); } catch (InterruptedException e) { }

		LeagueBot.cmd = "";
		LeagueBot.sendMsg(target, msg);
	}
}
